package com.hjq.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjq.common.utils.PageUtils;
import com.hjq.mallproduct.entity.CategoryEntity;
import com.hjq.mallproduct.entity.vo.Catlog2VO;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 13:33:42
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listAllWithTree();

    void removeBatchByIds(List<Long> asList);

    CategoryEntity getInfoById(Long catId);

    List<Long> getCategoryPath(Long catelogId);

    void updateCasecade(CategoryEntity category);

    List<CategoryEntity> getFirstLevelList();

    Map<String,List<Catlog2VO>> getCategoryListInPage();

}

